import service from '@/utils/request'
const { httpPost, httpGet } = service
// -----------------------------周材结算-租赁收入结算接口---------------------//
const request = {
    //获取租赁收入结算数据
    getRentalTradeIncomeListData (params) {
        return httpPost({
            url: '/turnoversettle/leaseIncomeSettle/listByEntity',
            params
        })
    },
    //新增租赁收入结算数据
    addRentalTradeIncomeData (params) {
        return httpPost({
            url: '/turnoversettle/leaseIncomeSettle/create',
            params
        })
    },
    //根据id查询对应数据
    searchRentalTradeIncomeData (params) {
        return httpGet({
            url: '/turnoversettle/leaseIncomeSettle/findById',
            params
        })
    },
    //根据id查询对应数据下的结算明细
    searchRentalTradeIncomeDetailedcData (params) {
        return httpGet({
            url: '/turnoversettle/leaseIncomeSettle/getDtlList',
            params
        })
    },
    //根据id删除对应数据
    deleteRentalTradeIncomeData (params) {
        return httpGet({
            url: '/turnoversettle/leaseIncomeSettle/delete',
            params
        })
    },
    //保存基本信息
    storageRentalTradeIncomeBasicData (params) {
        return httpPost({
            url: '/turnoversettle/leaseIncomeSettle/update',
            params
        })
    },
    //保存明细
    storageRentalTradeIncomeDetailedcData (params) {
        return httpPost({
            url: '/turnoversettle/leaseIncomeSettle/updateDtl',
            params
        })
    },
    //获取明细
    getRentalTradeIncomeDetailedListData (params) {
        return httpPost({
            url: '/subcontract/thirdParty/getLeaseIncomeSettlement',
            params
        })
    },
    //获取明细中的结算时间、数量、金额
    getRentalTradeIncomeDetailedTimeAndAmountAndNumberData (params) {
        return httpPost({
            url: '/turnoversettle/leaseIncomeSettle/decorateDtlList',
            params
        })
    }
}
export default request